﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.WindowsAzure.StorageClient;
using Microsoft.WindowsAzure;
using System.Threading;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

namespace Melos
{
    /**
     * Result queue handler. Just casts the generic "Object"s to ResultQueueItem.
     */ 
    public class ResultQueue : GenericQueue
    {
        public ResultQueue(CloudStorageAccount sa) : base(sa, "result") { }
        public void putItem(ResultQueueItem wqi){
            base.putItem(wqi);
        }
        public ResultQueueItem getItem() {
            return (ResultQueueItem)base.getObject();
        }
   }
    [Serializable]
    public class ResultQueueItem {
        public string blobAddress { get; set; }
    }
}
